import {ActionType} from "./mutation-types";

export const selectedSymptomFn = ({commit},data) => {
    commit(ActionType.SELECTEDSYMPTOM,data);
};
export const inquiryDataListFn = ({commit},data) => {
    commit(ActionType.INQUIRYDATALIST,data);
};
export const diagnosisFn = ({commit},data) => {
    commit(ActionType.DIAGNOSISGOBAL,data);
};
export const scrollViewNumFn = ({commit},data) => {
    commit(ActionType.SCROLLVIEWNUMGLOBAL,data);
};
export const pageListGlobalFn = ({commit},data) => {
    commit(ActionType.PAGELISTGLOBAL,data);
};
export const answerGlobalFn = ({commit},data) => {
    commit(ActionType.ANSWERGLOBAL,data);
};
export const answerKeyGlobalFn = ({commit},data) => {
    commit(ActionType.ANSWERKEYGLOBAL,data);
};
//记录从result页面返回主页
export const fromResultPageFlagFn = ({commit},data) => {
    commit(ActionType.FROMRESULTPAGEFLAG,data);
};
//记录从record页面返回主页
export const fromRecordsPageFlagFn = ({commit},data) => {
    commit(ActionType.FROMRECORDSPAGEFLAG,data);
};
export const diagnosisGlobalFn = ({commit},data) => {
    commit(ActionType.DIAGNOSISGOBAL,data);
};
export const distinguishGlobalFn = ({commit},data) => {
    commit(ActionType.DISTINGUISHGLOBAL,data);
};
export const continueFlagFn = ({commit},data) => {
    commit(ActionType.CONTINUEFLAG,data);
};
export const otherSymptomsTextGlobalFn = ({commit},data) => {
    commit(ActionType.OTHERSYMPTOMSTEXTGLOBAL,data);
};
export const otherSymptomsListGlobalFn = ({commit},data) => {
    commit(ActionType.OTHERSYMPTOMSLISTGLOBAL,data);
};
export const snGlobalFn = ({commit},data) => {
    commit(ActionType.SNGLOBAL,data);
};
export const fromUserPageFlagFn = ({commit},data) => {
    commit(ActionType.FROMUSERPAGEFLAG,data);
};
export const finishInqFlagGlobalFn = ({commit},data) => {
    commit(ActionType.FINISHINQFLAGGLOBAL,data);
};
export const scrollTopGlobalFn = ({commit},data) => {
    commit(ActionType.SCROLLTOPGLOBAL,data);
};

